package cn.hongyu.controller;

import cn.hongyu.pojo.User;
import cn.hongyu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller("userController")
public class UserCotroller {
    @Autowired
    private UserService userService;
    @Autowired
    private User user;

    public void addUser(){
        userService.addUser(user);
    }
}
